#{extends "Monitor/monitor.html" /}
#{set monitorTitle:"Metrics "  /}



<p>运行时间：${uptimeString}</p>

#{if r != null }
<h2>Gauges</h2>
<table border="1" cellpadding="5">
    <thead>
    <th>指标</th>
    <th>使用量</th>
    <th>最大值</th>
    <th>使用率</th>
    <th>状态</th>
    </thead>
    <tr>
        <td>缓存队列深度</td>
        <td>${r.gauges.cacheSize.value}</td>
        <td> - </td>
        <td> - </td>
        <td>正常</td>
    </tr>
    <tr>
        <td>JVM内存使用</td>
        <td>${r.gauges.jvmHeapUsed.value.div(1048576.0).format("### M")}</td>
        <td>${r.gauges.jvmHeapMax.value.div(1048576.0).format("### M")}</td>
        <td>${r.gauges.jvmHeapUsage.value.format("###.# %")}</td>
        <td>正常</td>
    </tr>

</table>

<h2>Meters</h2>
<table border="1" cellpadding="5">
    <thead>
    <th>指标</th>
    <th>计数</th>
    <th>m15_rate</th>
    <th>m1_rate</th>
    <th>m5_rate</th>
    <th>mean_rate</th>
    <th>units</th>
    <th>状态</th>
    </thead>
    <tr>
        <td>队列入队速率</td>
        <td>${r.meters.inbound.count}</td>
        <td>${r.meters.inbound.m15_rate.format(".##")}</td>
        <td>${r.meters.inbound.m1_rate.format(".##")}</td>
        <td>${r.meters.inbound.m5_rate.format(".##")}</td>
        <td>${r.meters.inbound.mean_rate.format(".##")}</td>
        <td>${r.meters.inbound.units}</td>
        <td>正常</td>
    </tr>
    <tr>
        <td>队列出队速率</td>
        <td>${r.meters.outbound.count}</td>
        <td>${r.meters.outbound.m15_rate.format(".##")}</td>
        <td>${r.meters.outbound.m1_rate.format(".##")}</td>
        <td>${r.meters.outbound.m5_rate.format(".##")}</td>
        <td>${r.meters.outbound.mean_rate.format(".##")}</td>
        <td>${r.meters.outbound.units}</td>
        <td>正常</td>
    </tr>
</table>

<h2>Timers</h2>
<table border="1" cellpadding="5">
    <tr>
        <th rowspan="4">报文处理速度</th>
        <th>max</th>
        <th>mean</th>
        <th>min</th>
        <th>p50</th>
        <th>p75</th>
        <th>p95</th>
        <th>p98</th>
        <th>p99</th>
        <th>p999</th>
        <th>stddev</th>
        <th>duration_units</th>
        <th>状态</th>
    </tr>
    <tr>
        <td>${r.timers.acarsProcess.max.format(".###")}</td>
        <td>${r.timers.acarsProcess.mean.format(".###")}</td>
        <td>${r.timers.acarsProcess.min.format(".###")}</td>
        <td>${r.timers.acarsProcess.p50.format(".###")}</td>
        <td>${r.timers.acarsProcess.p75.format(".###")}</td>
        <td>${r.timers.acarsProcess.p95.format(".###")}</td>
        <td>${r.timers.acarsProcess.p98.format(".###")}</td>
        <td>${r.timers.acarsProcess.p99.format(".###")}</td>
        <td>${r.timers.acarsProcess.p999.format(".###")}</td>
        <td>${r.timers.acarsProcess.stddev.format(".####")}</td>
        <td>${r.timers.acarsProcess.duration_units}</td>
        <td rowspan="3">正常</td>
    </tr>
    <tr>
        <th>计数</th>
        <th>m15_rate</th>
        <th>m1_rate</th>
        <th>m5_rate</th>
        <th>mean_rate</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>rate_units</th>
    </tr>
    <tr>
        <td>${r.timers.acarsProcess.count}</td>
        <td>${r.timers.acarsProcess.m15_rate.format(".##")}</td>
        <td>${r.timers.acarsProcess.m1_rate.format(".##")}</td>
        <td>${r.timers.acarsProcess.m5_rate.format(".##")}</td>
        <td>${r.timers.acarsProcess.mean_rate.format(".##")}</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>${r.timers.acarsProcess.rate_units}</td>
    </tr>

    <tr>
        <th rowspan="4">MQ发送速度</th>
        <th>max</th>
        <th>mean</th>
        <th>min</th>
        <th>p50</th>
        <th>p75</th>
        <th>p95</th>
        <th>p98</th>
        <th>p99</th>
        <th>p999</th>
        <th>stddev</th>
        <th>duration_units</th>
        <th>状态</th>
    </tr>
    <tr>
        <td>${r.timers.mqSend.max.format(".###")}</td>
        <td>${r.timers.mqSend.mean.format(".###")}</td>
        <td>${r.timers.mqSend.min.format(".###")}</td>
        <td>${r.timers.mqSend.p50.format(".###")}</td>
        <td>${r.timers.mqSend.p75.format(".###")}</td>
        <td>${r.timers.mqSend.p95.format(".###")}</td>
        <td>${r.timers.mqSend.p98.format(".###")}</td>
        <td>${r.timers.mqSend.p99.format(".###")}</td>
        <td>${r.timers.mqSend.p999.format(".###")}</td>
        <td>${r.timers.mqSend.stddev.format(".####")}</td>
        <td>${r.timers.mqSend.duration_units}</td>
        <td rowspan="3">正常</td>
    </tr>
    <tr>
        <th>计数</th>
        <th>m15_rate</th>
        <th>m1_rate</th>
        <th>m5_rate</th>
        <th>mean_rate</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>rate_units</th>
    </tr>
    <tr>
        <td>${r.timers.mqSend.count}</td>
        <td>${r.timers.mqSend.m15_rate.format(".##")}</td>
        <td>${r.timers.mqSend.m1_rate.format(".##")}</td>
        <td>${r.timers.mqSend.m5_rate.format(".##")}</td>
        <td>${r.timers.mqSend.mean_rate.format(".##")}</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
        <td>${r.timers.mqSend.rate_units}</td>
    </tr>

</table>
#{/if}